//封装具体的业务请求
import {request} from './core'
import {GET,POST,path} from './config'

const APIClient ={
    getStoreList(params){
        return request(GET,path.storeList,params)
    },
    //轮播
    getBanner(params){
        return request(GET,path.banner,params)
    },
    //主题
    getSlide(params){
        return request(GET,path.slide,params)
    },
    getShopList(params){
        return request(GET,path.shopList,params)
    },
    //商品详情
    getGoodsDetails(params){
        return request(POST,path.goodsdetails,params)
    },
    //文章详情
    getArticleDetails(params){
        return request(GET,path.articledetails,params)
    },
    getClassify(params){
        return request(POST,path.classify,params)
    }
}
export default APIClient;